/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import Model.Constants;
import Model.Board;
import Model.Position;
import View.BoardInterface;
import View.ChooseMode;
import View.GameInterface;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.Random;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import View.Creater;

/**
 *
 * @author PhucAnh
 */
public class Controller {

    protected final ChooseMode chooseMode;
    protected final BoardInterface boardInterface;
    protected final Board board;
    protected final GameInterface gameInterface;
    protected final Creater creater;
    protected int move = 0;
    protected int minColumn = 0;
    protected int maxColumn = 0;
    protected int minRow = 0;
    protected int maxRow = 0;
    protected int finalX;
    protected int finalY;
    protected static int score1 = 0;
    protected static int score2 = 0;
    protected static int numberOfModule;
    protected ImageIcon icon1 ;
    protected ImageIcon icon2 ;
    protected ImageIcon iconTurn ;
    protected static boolean isLocked;
    protected static SampleTranfer optionTranfer, sendTranfer, recvTranfer;

    public Controller(BoardInterface boardInterface, Board board, GameInterface gameInterface, ChooseMode chooseMode, Creater creater) {
        this.boardInterface = boardInterface;
        this.board = board;
        this.gameInterface = gameInterface;
        this.chooseMode = chooseMode;
        this.creater = creater;
        
        icon1 = new ImageIcon(Constants.IMAGE_PLAYER_1);
        icon2 = new ImageIcon(Constants.IMAGE_PLAYER_2);
        iconTurn = new ImageIcon(Constants.TURN);
        
    }
    

    
}
